#include <iostream>
#include <algorithm>
#include <string>

using namespace std;

void test(const std::string &s)
{
    if (std::equal(s.begin(), s.begin() + s.size() / 2, s.rbegin()))
    {
        cout << s << " is a palindrome" << endl;
    }
    else
    {
        cout << s << " is not a palindrome" << endl;
    }
}

int main()
{
    test("heleh");
    test("heeh");
    test("hello");
}
